package com.springboot.mvc.viewcontroller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * <p>视图渲染测试</p>
 *
 * @author  yangz
 * @date    2015/9/10
 * @version latest
 */
@Controller
public class TestViewController {

    @RequestMapping(value = "/admin/login/index", method = RequestMethod.GET)
    public ModelAndView hello(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/login/index");
        return view;
    }

}
